<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="renderer" content="webkit">
  <title>系统主页</title>
  <link rel="shortcut icon" href="${request.contextPath}/images/favicon.ico">
  <link rel="stylesheet" href="${request.contextPath}/plugins/bootstrap/css/bootstrap.css">
  <link rel="stylesheet" href="${request.contextPath}/plugins/font-awesome/css/font-awesome.min.css">
  <link rel="stylesheet" href="${request.contextPath}/hadmin/css/animate.css">
  <link rel="stylesheet" href="${request.contextPath}/hadmin/css/style.css?v=4.1.0">
</head>
<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
  <div id="wrapper">
    <!--左侧导航开始-->
    <nav class="navbar-default navbar-static-side" role="navigation">
      <div class="nav-close">
        <i class="fa fa-times-circle"></i>
      </div>
      <div class="sidebar-collapse">
        <ul class="nav" id="side-menu">
          <li class="nav-header">
            <div class="dropdown profile-element">
              <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                <span class="clear">
                  <span class="block m-t-xs" style="font-size:20px;">
                    <strong class="font-bold">后台管理</strong>
                  </span>
                </span>
              </a>
            </div>
            <div class="logo-element">后台</div>
          </li>
          <li class="active">
            <a class="J_menuItem" href="${request.contextPath}/main">
              <i class="fa fa-home"></i>
              <span class="nav-label">系统首页</span>
            </a>
          </li>
          <#if treeMenus??>
            <#list treeMenus as vo>
              <li>
                <a href="#">
                  <i class="${(vo.sysMenu.icon)!}"></i>
                  <span class="nav-label">${(vo.sysMenu.menuName)!}</span>
                  <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level">
                  <#list vo.children as ch>
                    <li>
                      <a class="J_menuItem" href="${request.contextPath}/${(ch.sysMenu.url)!}">${(ch.sysMenu.menuName)!}</a>
                    </li>
                  </#list>
                </ul>
              </li>
           </#list>
          </#if>
          <li>
            <a href="#">
              <i class="fa fa fa-user-o"></i>
              <span class="nav-label">个人中心</span>
              <span class="fa arrow"></span>
            </a>
            <ul class="nav nav-second-level">
              <li>
                  <a class="J_menuItem" href="${request.contextPath}/system/center/info">个人信息</a>
              </li>
              <li>
                  <a class="J_menuItem" href="${request.contextPath}/system/center/pwd">修改密码</a>
              </li>
              <li>
                <a class="J_menuItem" href="${request.contextPath}/system/gen/listGen">代码生成</a>
              </li>
            </ul>
          </li>
        </ul>
      </div>
    </nav>
    <!--左侧导航结束-->
    <!--右侧部分开始-->
    <div id="page-wrapper" class="gray-bg">
      <div class="row border-bottom">
        <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
          <div class="navbar-header">
            <a class="navbar-minimalize minimalize-styl-2 btn btn-info" href="#">
              <i class="fa fa-bars"></i>
            </a>
          </div>
          <ul class="nav navbar-top-links navbar-right">
            <li>
              <a href="${request.contextPath}/login/logout" class="dropdown-toggle" title="退出">
                <i class="fa fa-sign-out"></i>
              </a>
            </li>
          </ul>
        </nav>
      </div>
      <div class="row J_mainContent" id="content-main">
        <iframe id="J_iframe" width="100%" height="100%" src="${request.contextPath}/main" frameborder="0" seamless></iframe>
      </div>
    </div>
    <!--右侧部分结束-->
  </div>
  <script src="${request.contextPath}/plugins/jQuery/jQuery-2.1.4.min.js"></script>
  <script src="${request.contextPath}/plugins/bootstrap/js/bootstrap.min.js?v=3.3.6"></script>
  <script src="${request.contextPath}/plugins/metisMenu/jquery.metisMenu.js"></script>
  <script src="${request.contextPath}/plugins/slimscroll/jquery.slimscroll.min.js"></script>
  <script src="${request.contextPath}/plugins/layer/layer.min.js"></script>
  <script src="${request.contextPath}/hadmin/js/hAdmin.js?v=4.1.0"></script>
  <script src="${request.contextPath}/plugins/pace/pace.min.js"></script>
  <script>
    $(function(){
      //菜单点击
      $(".J_menuItem").on('click',function(){
        var url = $(this).attr('href');
        $("#J_iframe").attr('src',url);
        return false;
      });
    });
  </script>
</body>
</html>
